---@class Battle.AiSelector:Battle.AiComposite
---@field New fun():Battle.AiSelector
local AiSelector = Battle.CreateClass("AiSelector",Battle.AiComposite)
Battle.AiSelector = AiSelector
function AiSelector:onInitialize()
end
function AiSelector:update(dt)
    if self.children == nil then return Battle.AiTreeStatus.FAILURE end
    for k = 1 ,#self.children do
        local child = self.children[k]
        local state = child:tick(dt)
        if state ~= Battle.AiTreeStatus.FAILURE then
            return state
        end
    end
    return Battle.AiTreeStatus.FAILURE
end